package com.qf.collection.homework;

import java.util.ArrayList;

public class StudentDemo {

    public static void main(String[] args) {

        Student stu1 = new Student();
        stu1.addFrind("王葵");
        stu1.addFrind("李敬雨");
        stu1.addFrind("万超岩");
        Student stu2 = new Student();
        stu2.addFrind("王葵");
        stu2.addFrind("李敬雨");
        stu2.addFrind("谷龙");

        System.out.println(stu1.getFriendList());
        System.out.println(stu2.getFriendList());

        ArrayList<String> pubFriends = StudentUtils.pubFriends(stu1, stu2);
        System.out.println("公共好友为:"+pubFriends);

        System.out.println(stu1.getFriendList());
        System.out.println(stu2.getFriendList());


        System.out.println("=============================");
        ArrayList<String> allFriends = StudentUtils.allFriends(stu1, stu2);
        System.out.println("全部好友为:"+allFriends);


        System.out.println(stu1.getFriendList());
        System.out.println(stu2.getFriendList());
    }
}
